<template>
  <!-- <el-form ref="form" :model="form" label-width="80px">
    <el-form-item label="商品名称">
      <el-input></el-input>
    </el-form-item>
    <el-form-item label="商品类别">
      <el-select></el-select>
    </el-form-item>
    <el-form-item label="活动时间">
      <el-col :span="11">
        <el-date-picker
          type="date"
          placeholder="请选择开始日期"
        ></el-date-picker>
      </el-col>
      <el-col :span="2">至</el-col>
      <el-col :span="11">
        <el-date-picker
          type="date"
          placeholder="请选择结束日期"
        ></el-date-picker>
      </el-col>
    </el-form-item>
    <el-form-item label="商品性质">
      <el-checkbox-group>
        <el-checkbox label="蔬菜" name="type"></el-checkbox>
        <el-checkbox label="蛋类" name="type"></el-checkbox>
        <el-checkbox label="肉品" name="type"></el-checkbox>
        <el-checkbox label="主食" name="type"></el-checkbox>
        <el-checkbox label="零食" name="type"></el-checkbox>
      </el-checkbox-group>
    </el-form-item>
    <el-form-item>
      <el-radio-group lang="售卖方式">
        <el-radio label="线上" name="online"></el-radio>
        <el-radio label="线下" name="online"></el-radio>
      </el-radio-group>
    </el-form-item>
    <el-form-item label="备注">
      <el-input type="textarea"></el-input>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="onsubmit">确定</el-button>
      <el-button>取消</el-button>
    </el-form-item>
  </el-form> -->
  <div class="app-container">
    <el-row>
      <el-form ref="form" :inline="true" label-width="80px">
        <el-form-item label="学生姓名">
          <el-input placeholder="请输入学生姓名"></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="search">查询</el-button>
        </el-form-item>
      </el-form>
    </el-row>
    <el-row>
      <el-table :data="tableData" border height="100%" style="width: 99%">
        <el-table-column prop="goodName" label="商品名称" ></el-table-column>
        <el-table-column prop="createTime" label="添加日期" width="180"></el-table-column>
        <el-table-column prop="remark" label="备注" align="center"></el-table-column>
      </el-table>
    </el-row>
  </div>
</template>

<script>
import { getList } from '../../api/student'
export default {
  name: "studentList",
  props: [],
  data() {
    return {
      checkboxd: [],
      tableData: [],
    };
  },
  methods: {
    search() {
      alert("aa");
    },
  },
  mounted(){
    console.log('studentTable',getList.data);
    
  }
};
</script>

<style lang="scss" scoped>
.el-row {
  margin-bottom: 20px;

  &:last-child {
    margin-bottom: 0;
  }
}

.el-col {
  border-radius: 4px;
}

.bg-purple-dark {
  background: #99a9bf;
}

.bg-purple {
  background: #d3dce6;
}

.bg-purple-light {
  background: #e5e9f2;
}

.grid-content {
  border-radius: 4px;
  min-height: 36px;
}

.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}
</style>